package com.qqqq.service;

import com.qqqq.code.Page;
import com.qqqq.domain.User;

import java.sql.SQLException;
import java.util.List;

public interface IUserService {

    User login(String username, String password) throws SQLException;

//    List<User> getUser(User user) throws SQLException;

    int addUser(User user) throws SQLException;

    int deleteUser(int id) throws SQLException;

    int updateUser(User user) throws SQLException;

    User  getUser(int id) throws SQLException;

    Page<User> getUserPage(int pageNum, int pageSize, User user) throws SQLException;
}
